package org.maggioni.springsandbox.model.draw.shapes;

import org.maggioni.springsandbox.model.decorators.LifeCycleAware;
import org.maggioni.springsandbox.model.draw.Point;

public class Line extends Shape implements LifeCycleAware {
	private Point pointA;
	private Point pointB;
	
	public Point getPointA() {
		return pointA;
	}
	public void setPointA(Point pointA) {
		this.pointA = pointA;
	}
	public Point getPointB() {
		return pointB;
	}
	public void setPointB(Point pointB) {
		this.pointB = pointB;
	}
	
	@Override
	public void init() {
		System.out.println(this.getClass().getName()+" initialized.");
	}
	@Override
	public void dispose() {
		System.out.println(this.getClass().getName()+" disposed.");
	}
	
	@Override
	public String toString() {
		return "Line [pointA=" + pointA + ", pointB=" + pointB + ", getId()="
				+ getId() + ", getName()=" + getName() + "]";
	}
	
}
